package com.csy.property.community.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("aj_facility")
public class AjFacility implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设施名
     */
    private String facilityName;

    /**
     * 小区名
     */
    private String communityName;

    @TableField(exist = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

    /**
     * 详细位置
     */
    private String address;

    /**
     * 状态
     */
    private String status;

    /**
     * 管理人
     */
    private String managerId;
    @TableField(exist = false)
    private String managerName;
    /**
     * 所属人
     */
    private String ownerId;
    @TableField(exist = false)
    private String ownerName;
    /**
     * 金额
     */
    private BigDecimal amount;

    //维护时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date maintainTime;

    //失效时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    private String createBy;

    private LocalDateTime createTime;

    private String updateBy;

    private LocalDateTime updateTime;

    private String remark;


}
